package com.owbtgad.common.help;

import android.content.Context;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Interceptor;
import com.alibaba.android.arouter.facade.callback.InterceptorCallback;
import com.alibaba.android.arouter.facade.template.IInterceptor;
import com.owbtgad.common.utils.ActivityUtils;

@Interceptor(priority = 1)
public class ARouterInterceptor implements IInterceptor {
    private static String TAG = "ARouterInterceptor";

    @Override
    public void process(Postcard postcard, InterceptorCallback callback) {
//        Log.d(TAG, "process: "+postcard.getUri().toString());
       /* if (AppCache.isLogin()) {
            callback.onContinue(postcard);
        } else {
            callback.onInterrupt(null);
        }*/
        ActivityUtils.startSignIn(postcard.getUri());
    }

    @Override
    public void init(Context context) {

    }
}
